package com.itheima.junit;

/**
 * @author Anomaly
 * @date 2023/2/11 19:02
 */
public class UserService {
    public String login(String name, String passwd) {
        if ("admin".equals(name) && "123456".equals(passwd)) {
            return "登录成功";
        } else {
            return "登陆失败";
        }
    }

    public void selectNames() {
        System.out.println(10 / 0);
        System.out.println("查询成功");
    }
}
